#!/usr/bin/env python

#bootstraps a setuptools installation
from ez_setup import use_setuptools
use_setuptools()

from setuptools import setup, find_packages

info = {"__version__": None,
    "__author__": None,
    "__author_email__": None
}

f = open("pytoss/__init__.py", "r")
line = f.readline()
while line:
    for key in info.keys():
        if line.strip().startswith(key):
            info[key] = eval(line.split('=')[1])
    line = f.readline()
f.close()

setup(
    name = "pytoss",
    version = info["__version__"],
    description = "pytoss is a powerful, no-hassle, pythonic deployment tool.",
# TODO: make a long_description
#     long_description="""
# """,
    author = info["__author__"],
    author_email = info["__author_email__"],
    url = "http://code.google.com/p/pytoss/",
    install_requires = ["paramiko>=1.7.3"],
    packages = find_packages(), #pull in all folders with __init__.py as packages
    scripts = ["scripts/toss"],
    classifiers = [
          "Development Status :: 3 - Alpha",
          "Environment :: Console",
          "Intended Audience :: Developers",
          "Intended Audience :: System Administrators",
          "License :: OSI Approved :: New BSD License (BSD)",
          "Operating System :: MacOS :: MacOS X",
          "Operating System :: Unix",
          "Operating System :: POSIX",
          "Programming Language :: Python",
          "Topic :: Software Development",
          "Topic :: System :: Software Distribution",
    ],
)
